#include "cxidockwidgetdesigner.h"
#include "controls/dockwidget/cxidockwidget.h"
#include <QtCore/QtGlobal>

CxiDockWidgetDesigner::CxiDockWidgetDesigner(QObject* parent)
	: CxiDesignerBase(parent)
{
	d_name = "CxiDockWidget";

	d_include = "controls/dockwidget/cxidockwidget.h";

	// BUG: Widget class = QDockWidget 自定义的CxiDockWidget能正常运行
	d_domXml = QLatin1String(
			" <widget class=\"QDockWidget\" name=\"cxiDockWidget\">\n"
			"  <attribute name=\"dockWidgetArea\">\n"
			"   <number>1</number>\n"
			"  </attribute>\n"
			"  <widget class=\"QWidget\" name=\"dockWidgetContents\"/>\n"
			" </widget>\n");
}

QWidget* CxiDockWidgetDesigner::createWidget(QWidget* parent)
{
	return new CxiDockWidget(parent);
}

bool CxiDockWidgetDesigner::isContainer() const
{
	return true;
}

